<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>管理</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="../../../../lib/include.js"></script>

    <style>
        .form-control:focus,
        .single-line:focus { border-color: #0e9aef !important;}
        .checkbox-inline {line-height: 5px;}
        .search{ width: 25%;}/* 设置搜索框宽度 */
        .pull-right.search {
            width: 200px;
        }
    </style>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content" id="app" v-cloak >
    <div class="ibox float-e-margins">
        <div class="ibox-content">
            <div class="row row-lg">
                <div>
                    <div style="display: inline-block;margin-right: 10px">
                        <select id="isLimit" class="form-control" @change="selectStatus">
                            <option value="">---是否限量---</option>
                            <option value="1">---不限量---</option>
                            <option value="0">---限量---</option>
                        </select>
                    </div>
                    <div style="display: inline-block;margin-right: 10px">
                        <select id="status" class="form-control" @change="selectStatus">
                            <option value="">---是否有效---</option>
                            <option value="1">---有效---</option>
                            <option value="0">---失效---</option>
                            <option value="2">---未开启---</option>
                        </select>
                    </div>
                    <div style="display: inline-block;margin-right: 10px">
                        <select id="isOpenManualGet" class="form-control" @change="selectStatus">
                            <option value="">---是否开启用户手动获取---</option>
                            <option value="1">---开启用户手动获取---</option>
                            <option value="0">---关闭用户手动获取---</option>
                        </select>
                    </div>
                    <div style="display: inline-block;margin-right: 10px">
                        <select id="isGive" class="form-control" @change="selectStatus">
                            <option value="">---是否允许转赠---</option>
                            <option value="1">---允许转赠---</option>
                            <option value="0">---不允许转赠---</option>
                        </select>
                    </div>
                    <div style="display: inline-block;margin-right: 10px">
                        <select id="isFullCourt" class="form-control" @change="selectStatus">
                            <option value="">---是否为全场券---</option>
                            <option value="1">---全场券---</option>
                            <option value="0">---非全场券---</option>
                        </select>
                    </div>
                    <div style="display: inline-block;margin-right: 10px">
                        <select id="isOpenExchange" class="form-control" @change="selectStatus">
                            <option value="">---是否开启积分兑换---</option>
                            <option value="1">---开启积分兑换---</option>
                            <option value="0">---关闭积分兑换---</option>
                        </select>
                    </div>
                    <div style="display: inline-block;margin-right: 10px">
                        <select id="type" class="form-control" @change="selectStatus">
                            <option v-for="(item,index) in selects" :value="item.keyS" >---{{item.keyValue}}---</option>
                        </select>
                    </div>
                    <div style="display: inline-block;margin-left: 10px;width: 300px">
                        <input type="text" class="form-control" id="time" placeholder="请选择时间范围" style="cursor: pointer">
                    </div>
                    <div style="display: inline-block;margin-left: 10px">
                        <select id="useScene" class="form-control" @change="selectStatus">
                            <option v-for="(item,index) in useSceneList" :value="item.keyS" >---{{item.keyValue}}---</option>
                        </select>
                    </div>
                </div>
                <div class="btn-group" id="toolbar" role="group">
                    <button type="button" class="btn btn-outline btn-default" @click="getLog(0)" v-if="permission(0)">
                        <i class="glyphicon glyphicon-plus" aria-hidden="true"></i>查看领取记录
                    </button>
                    <button type="button" class="btn btn-outline btn-default" @click="select(1)" v-if="permission(1)">
                        <i class="glyphicon glyphicon-pencil" aria-hidden="true"></i>修改有效状态
                    </button>
                    <button type="button" class="btn btn-outline btn-default" @click="del(2)" v-if="permission(2)">
                        <i class="glyphicon glyphicon-trash" aria-hidden="true"></i>删除
                    </button>
                </div>
                <table id="bootstrapTableEvents"></table>
            </div>
        </div>
    </div>
</div>
<!--选择状态-->
<div class="ibox float-e-margins" id="select" style="display: none">
    <div class="form-group">
        <label class="col-sm-3 control-label">有效状态</label>
        <div class="col-sm-9">
            <label class="radio-inline i-checks">
                <input type="radio" name="status" value="1" checked> 正常
            </label>
            <label class="radio-inline i-checks">
                <input type="radio" name="status" value="0" > 失效
            </label>
            <label class="radio-inline i-checks">
                <input type="radio" name="status" value="2"> 未开启
            </label>
        </div>
    </div>
    <div class="form-group" style="text-align: center;padding-top: 20px;clear: both">
        <a href="javascript:layer.closeAll();" class="btn btn-default" >关 闭</a>
        <a class="btn btn-primary" onclick="update(1)">确 定</a>
    </div>
</div>

<script src="../../../../../../public-tools/pc/plugins/laydate/laydate.js"></script>
<script src="../../../../js/coupon-manage/coupon/posted/list.js"></script>
</body>
</html>
